package com.xqls.dal.dao.mybatis;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.xqls.dal.dao.TScheduleJobDao;
import com.xqls.dal.model.TScheduleJob;
import com.xqls.dal.model.TScheduleJobExample;
import com.xqls.dal.service.TScheduleJobMapper;
@Repository
public class TScheduleJobDaoImpl implements TScheduleJobDao {
	@Autowired
	private TScheduleJobMapper tScheduleJobMapper;
	@Override
	public List<TScheduleJob> selectAllJob() {
		List<TScheduleJob> list = tScheduleJobMapper.selectAllJob();
		return list;
	}

	@Override
	public int insertJob(TScheduleJob tScheduleJob) {
		int result = tScheduleJobMapper.insert(tScheduleJob);
		return result;
	}

	@Override
	public List<TScheduleJob> selectJobByExample(TScheduleJobExample example) {
		return tScheduleJobMapper.selectByExample(example);
	}

	@Override
	public int updateJob(TScheduleJob tScheduleJob) {
		int result = tScheduleJobMapper.updateByDescript(tScheduleJob);
		return result;
	}

}
